package chapter03

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func TestSyntaxTpl(ctx *gin.Context) {
	name := "张三"

	arr := []int{11, 22, 33, 44, 55}

	map_data := map[string]interface{}{
		"name": name,
		"arr":  arr,
	}
	ctx.HTML(http.StatusOK, "test.html", map_data)
}
